package com.fasteat.menu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasteat.menu.annotation.Unchangeable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 
 * </p>
 *
 * @author run
 * @since 2021-01-19
 */
@ApiModel(value="菜谱举报信息对象", description="菜谱举报信息表")
@TableName(value = "t_menu_report")
public class ReportMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "举报信息id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "举报类别id")
    @NotEmpty(message = "举报类别id不能为空")
    private String reportId;

    @ApiModelProperty(value = "菜谱id")
    @NotEmpty(message = "菜谱id不能为空")
    @Unchangeable
    private String menuId;

    @ApiModelProperty(value = "菜谱标题")
    @TableField(exist = false)
    private String menuTitle;

    @ApiModelProperty(value = "举报人id")
    @NotEmpty(message = "举报人id不能为空")
    @Unchangeable
    private String reporterId;

    @ApiModelProperty(value = "处理状态（0表示未处理，1表示处理）")
    @Unchangeable
    private Integer isDispose;

    @ApiModelProperty(value = "举报描述")
    private String reportDescription;

    @ApiModelProperty(value = "创建时间")
    @Unchangeable
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1、否0")
    @TableLogic
    @Unchangeable
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReportId() {
        return reportId;
    }

    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuTitle() {
        return menuTitle;
    }

    public void setMenuTitle(String menuTitle) {
        this.menuTitle = menuTitle;
    }

    public String getReporterId() {
        return reporterId;
    }

    public void setReporterId(String reporterId) {
        this.reporterId = reporterId;
    }

    public Integer getIsDispose() {
        return isDispose;
    }

    public void setIsDispose(Integer isDispose) {
        this.isDispose = isDispose;
    }

    public String getReportDescription() {
        return reportDescription;
    }

    public void setReportDescription(String reportDescription) {
        this.reportDescription = reportDescription;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "ReportMessage{" +
                "id='" + id + '\'' +
                ", reportId='" + reportId + '\'' +
                ", menuId='" + menuId + '\'' +
                ", menuTitle='" + menuTitle + '\'' +
                ", reporterId='" + reporterId + '\'' +
                ", isDispose=" + isDispose +
                ", reportDescription='" + reportDescription + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", isDeleted=" + isDeleted +
                ", version=" + version +
                '}';
    }
}
